Integrand size = 8, antiderivative size = 15 \[ \int \cot ^2(a+b x) \, dx=-x-\frac {\cot (a+b x)}{b} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3554, 8} \[ \int \cot ^2(a+b x) \, dx=-\frac {\cot (a+b x)}{b}-x \]
[In]
[Out]
Rule 8
Rule 3554
Rubi steps \begin{align*} \text {integral}& = -\frac {\cot (a+b x)}{b}-\int 1 \, dx \\ & = -x-\frac {\cot (a+b x)}{b} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.01 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.93 \[ \int \cot ^2(a+b x) \, dx=-\frac {\cot (a+b x) \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},-\tan ^2(a+b x)\right )}{b} \]
[In]
[Out]
Time = 0.05 (sec) , antiderivative size = 21, normalized size of antiderivative = 1.40
method | result | size |
derivativedivides | \(\frac {-\cot \left (b x +a \right )-b x -a}{b}\) | \(21\) |
default | \(\frac {-\cot \left (b x +a \right )-b x -a}{b}\) | \(21\) |
risch | \(-x -\frac {2 i}{b \left ({\mathrm e}^{2 i \left (b x +a \right )}-1\right )}\) | \(24\) |
parallelrisch | \(\frac {-2 b x -\cot \left (\frac {b x}{2}+\frac {a}{2}\right )+\tan \left (\frac {b x}{2}+\frac {a}{2}\right )}{2 b}\) | \(31\) |
norman | \(\frac {-\frac {1}{2 b}+\frac {\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )}{2 b}-x \tan \left (\frac {b x}{2}+\frac {a}{2}\right )}{\tan \left (\frac {b x}{2}+\frac {a}{2}\right )}\) | \(47\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.93 \[ \int \cot ^2(a+b x) \, dx=-\frac {b x \sin \left (b x + a\right ) + \cos \left (b x + a\right )}{b \sin \left (b x + a\right )} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 29 vs. \(2 (10) = 20\).
Time = 0.33 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.93 \[ \int \cot ^2(a+b x) \, dx=\begin {cases} - x - \frac {\cos {\left (a + b x \right )}}{b \sin {\left (a + b x \right )}} & \text {for}\: b \neq 0 \\\frac {x \cos ^{2}{\left (a \right )}}{\sin ^{2}{\left (a \right )}} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.20 \[ \int \cot ^2(a+b x) \, dx=-\frac {b x + a + \frac {1}{\tan \left (b x + a\right )}}{b} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 35 vs. \(2 (15) = 30\).
Time = 0.43 (sec) , antiderivative size = 35, normalized size of antiderivative = 2.33 \[ \int \cot ^2(a+b x) \, dx=-\frac {2 \, b x + 2 \, a + \frac {1}{\tan \left (\frac {1}{2} \, b x + \frac {1}{2} \, a\right )} - \tan \left (\frac {1}{2} \, b x + \frac {1}{2} \, a\right )}{2 \, b} \]
[In]
[Out]
Time = 0.15 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.00 \[ \int \cot ^2(a+b x) \, dx=-x-\frac {\mathrm {cot}\left (a+b\,x\right )}{b} \]
[In]
[Out]